/*
 * @Author: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @Date: 2025-09-01 17:14:46
 * @LastEditors: 无聊 7989314+Hwz1997@user.noreply.gitee.com
 * @LastEditTime: 2025-10-24 15:28:08
 * @FilePath: \keep_motion_api\routes\user.route.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const express = require('express');
const router = express.Router();

const { user, member, relation, finance, healthAssess } = require('@/controllers/admin/user');

router.get('/users', user.getUsers);
router.post('/users', user.createUser);
router.put('/users/:id', user.updateUser);
router.delete('/users/:id', user.deleteUser);
router.post('/users/:id/avatar', user.updateUserAvatar);
router.get('/users/wx', user.wxLogin);

router.get('/members', member.getMembers);
router.post('/members', member.createMember);
router.put('/members/:id', member.updateMember);
router.delete('/members/:id', member.deleteMember);

router.get('/relations', relation.getRelations);
router.post('/relations', relation.createRelation);
router.delete('/relations/:id', relation.deleteRelation);

router.get('/finances', finance.getFinances);
router.put('/finances', finance.updateFinances);
router.post('/finances/cards', finance.createCard);
router.put('/finances/cards', finance.deleteCard);

router.get('/assessments', healthAssess.getAssessments);
router.post('/assessments', healthAssess.createAssessment);
router.put('/assessments/:id', healthAssess.updateAssessment);
router.get('/assessments/stats', healthAssess.getStats);



module.exports = router;
